package com.flow.asyncflow.core.entity.core;

import com.flow.asyncflow.core.entity.log.asyncflowlog.AsyncFlowNodeDetailLogEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 节点返回
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AsyncFlowNodeResponse extends AsyncFlowResponse {

    /**
     * 是否中断整个流程，直接跳出
     */
    private boolean breakOff;
    /**
     * 是否忽略当前节点的日志
     */
    private boolean ignoreNodeTrackLog;
    /**
     * 执行失败是否发送微信报警
     */
    private boolean sendNodeFailAlarmMsg;
    /**
     * 执行失败是否发送业务微信报警
     */
    private boolean sendBusinessAlarmMsg;
    /**
     * 节点内的数据源集合【查询节点才会有值】
     */
    private Map<String, Object> dataPub = new HashMap<>();

    /**
     * 当前节点内部的日志明细集合
     */
    private List<AsyncFlowNodeDetailLogEntity> asyncFlowNodeDetailLogEntityList = new ArrayList<>();

    public AsyncFlowNodeResponse(int code, String msg) {
        super(code, msg);

    }

    public AsyncFlowNodeResponse() {
        super();

    }


}
